package com.boot.utils;

import java.util.ArrayList;
import java.util.List;

public class String2ListUtils {

    public static List<Integer> s2List(String str) {
        List<Integer> list = new ArrayList<>();
        if (str != null &&str.trim().length() > 0) {
            String[] split = str.split("&");
            for (String s : split) {
                Integer value = Integer.valueOf(s.split("=")[1]);
                list.add(value);
            }
        }
        return list;
    }
}
